﻿
import mx.utils.Delegate;
class cn.eminia.ComboV4_filter {
	var i_, l_, enabled, vars;
	function ComboV4_filter(mc, vars) {
		enabled = vars.enabled;
		vars = vars;
		var num = ((vars.num != null) ? vars.num : 4);
		var ori = ((vars.ori != null) ? vars.ori : '--请选择--');
		//
		trace(vars.onOpen)
		i_ = new cn.eminia.ComboClassV1.input(mc.input, ori, 
		{
			ori:vars.ori, 
			css0:vars.css0, 
			css1:vars.css1, 
			width:vars.width, 
			css:'font:黑体'
			});
			
			trace(vars.data);
		l_ = new cn.eminia.ComboClassV1.list(mc.popup.popup, vars.data, 
		{
			mouseStepAcce:vars.mouseStepAcce,
			css:vars.css2, 
			num:num, 
			width:vars.width - 4, 
			offset:2, 
			Esel:vars.onSelect, 
			Eover:vars.onSelectOver, 
			Eout:vars.onSelectOut
		});
		var p_ = new cn.eminia.ComboClassV1.Popup(mc.popup.popup, mc.popup.msk, 
		{
			it:mc, width:vars.width - 4, 
			height:mc.popup.popup.page.ori._height * num, 
			onClose:vars.onClose, 
			onOpen:vars.onOpen
		});
		var c_ = new cn.eminia.ComboClassV1.Combo(mc.input, mc.popup.popup);
		//
		cn.eminia.ComboClassV1.Util.bind(i_, p_, l_, c_);
		// 
	}
	function set ss(aa) {
		if (enabled) {
			i_.ss = aa;
		}
	}
}
